package com.ftg.learn.chapter01;

/**
 * 宠物之家
 *
 * @author lenovo
 * @version 1.0
 * @date 2023/5/13 14:05
 */

public class LearnPet {
    public  static  String salePet(PetEnum pet){
        return "编号为"+pet.getId() +" 名字叫"+ pet.getName()+ " 种类"+ pet.getType();


    }

    public static void main(String[] args) {
        System.out.println("小宇同学买橘猫");
        System.out.println("小李同学买蓝猫");
        System.out.println("小许同学买英短");
        String a=salePet(PetEnum.pet1001);
        System.out.println(a);

    }

}
